<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<form action="${param.action}" method="post">
	<input type="hidden" name="id" value="${model.id}" />
	<div class="custom-form">
		<ul>
			<li><span>员工号：</span><input name="username" type="text" class="easyui-textbox"
				data-options="required:true,validType:{length:[6,31],variable:[],ajax:['sys/user/checkUserName?id=${model.id}','username','已存在的账号名']}" value="${model.username}" /></li>
			<li><span>姓名：</span><input name="cade.id" type="text"  class="easyui-combogrid" data-options="
			value : '${model.cade.id}',	
			width : 148,
			panelWidth : 650,
			idField : 'id',
			textField : 'name',
			url : 'hrm/idCade/page?sort=idNo&isUsed=false&id=${model.cade.id}',
			pagination : true,
			pageSize : 10,
			pageList : [ 10, 20, 50 ],
			search : {
				position : 'bottom'
			}, 
        	onShowPanel:function(){
        		$(this).combogrid('grid').datagrid('search.init');
        	},
			columns : [ [{
				field:'id',
				title:'id',
				hidden: true,
				width:150			
			} , {
				field:'idNo',
				title:'身份证号',
				width:150			
			} , {
				field:'name',
				title:'姓名',
				width:150			
			} , {
				field:'sex',
				title:'性别',
				width:150			
			} , {
				field:'nation',
				title:'民族',
				width:150			
			} , {
				field:'born',
				title:'生日',
				width:150			
			} , {
				field:'address',
				title:'地址',
				width:150			
			} , {
				field:'userLifeB',
				title:'有效期起',
				width:150			
			} , {
				field:'userLifeE',
				title:'有效期止',
				width:150			
			} , {
				field:'police',
				title:'发证机关',
				width:150			
			}] ],icons:[clearInput_icon]
 			" /></li>
			<li><span>部门：</span><input name="dept.id" type="text" class="easyui-combotree"
				data-options="url:'sys/dept/comboTree?sort=sort,asc',valueField:'id',textField:'name',method:'get',icons:[clearInput_icon],required:true" value="${model.dept.id}" /></li>
			<li><span>员工状态：</span><input name="status.id" type="text" class="easyui-combobox"
				data-options="url:'hrm/dic/employeeStatus/comboBox',
                    method:'get',
                    valueField:'id',
                    textField:'name'" value="${model.status.id}" /></li>
			<li><span>手机号：</span><input name="telphone" type="text" class="easyui-textbox" data-options="validType:['length[1,31]','htmlUnescape']" value="${model.telphone}" /></li>
			<li><span>QQ号：</span><input name="qq" type="text" class="easyui-textbox" data-options="validType:['length[1,31]','htmlUnescape']" value="${model.qq}" /></li>
			<li><span>邮件：</span><input name="email" type="text" class="easyui-textbox" data-options="validType:['length[1,31]','email']" value="${model.email}" /></li>
			<li><span>学历：</span><input name="education.id" type="text" class="easyui-combobox"
				data-options="url:'hrm/dic/educationType/comboBox',
                    method:'get',
                    valueField:'id',
                    textField:'name'" value="${model.education.id}" /></li>
			<li><span>专业：</span><input name="major" type="text" class="easyui-textbox" data-options="validType:['length[1,31]','htmlUnescape']" value="${model.major}" /></li>
			<li><span>入职日期：</span><input name="hireDate" type="text" class="easyui-datebox" value="${model.hireDate}" /></li>
			<li><span>离职日期：</span><input name="leaveDate" type="text" class="easyui-datebox" value="${model.leaveDate}" /></li>
			<li><span>排序：</span><input name="sort" type="text" class="easyui-numberspinner" data-options="required:true" value="${model.sort}" /></li>
			<li><span>状态：</span><input name="enabled" type="text" class="easyui-combobox"
				data-options=" url:'statics/json/enabled.json',
                    method:'get',
                    valueField:'id',
                    textField:'name'" value="${model.enabled?1:0}" /></li>
			<li><span>备注：</span><input name="description" type="text" class="easyui-textbox" data-options="multiline:true,height:100,validType:['length[1,255]','htmlUnescape']"
				value="${model.description}" /></li>
		</ul>
		<input type="hidden" name="_dontcare" value="_dontcare"/>
	</div>
</form>